Added bindings support to GtkBuilder by introducing 3 new <property> attributes ...
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>
Fri, 11 Apr 2014 19:24:04 +0000 (16:24 -0300)
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>
Fri, 18 Apr 2014 21:59:14 +0000 (18:59 -0300)
commit887fc60ccee7b9719ebb47291682e48f00609b7b
tree2bd08e04e3314d27e6280e274a2eac6ab4ced56d
parentbe9d1e0b3ba969c71db6e1b00be505bea425908b
Added bindings support to GtkBuilder by introducing 3 new <property> attributes "bind-source" to specify the source object of the binding "bind-property" to specify the source property and "bind-flags" to specify the binding flags (optional)

Binding an object sensitive property with a check button active property will look like this:

<object class="GtkButton" id="button">
  <property name="sensitive" bind-source="checkbutton" bind-property="active"/>
</object>

This is based on the original work done by Denis Washington for his GSoC project

This closes Bug 654417 "[GSoC] Add <binding> element to GtkBuilder syntax"
gtk/gtkbuilder.c
gtk/gtkbuilder.rnc
gtk/gtkbuilder.rng
gtk/gtkbuilderparser.c
gtk/gtkbuilderprivate.h
testsuite/gtk/builder.c